<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WorkOrders.Domain.Dtos.WorkOrderDto>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	NextOrder
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>NextOrder</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <%= Html.Hidden("CustomerId") %>
            <p>
                <label for="CustomerDetails">CustomerDetails:</label>
                <%= Html.TextBox("CustomerDetails", Model.CustomerDetails, new { @disabled = true }) %>
                <%= Html.ValidationMessage("CustomerDetails", "*") %>
            </p>
            <p>
                <label for="Engineer">Engineer:</label>
                <%= Html.TextBox("Engineer", Model.Engineer, new { @disabled = true }) %>
                <%= Html.ValidationMessage("Engineer", "*") %>
            </p>
            <p>
                <label for="Status">Status:</label>
                <%= Html.TextBox("Status", Model.Status) %>
                <%= Html.ValidationMessage("Status", "*") %>
            </p>
            <p>
                <input type="submit" value="Update" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

